#coding=utf-8

from django.conf.urls import patterns, include, url
from django.conf import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # test demo
    # url(r'^$','baixinservice.views.test'),
    url(r'^test/$','baixinservice.views.test'),
    url(r'^appSide/healthNews$','baixinservice.views.health_news'),
    url(r'^appSide/storeList/$','baixinservice.views.store_list'),
    url(r'^appSide/Detail','baixinservice.views.detail'),
    url(r'^appSide/mapList/$','baixinservice.views.map_list'),
    url(r'^appSide/storeDetail','baixinservice.views.store_detail'),
    url(r'^appSide/adDetails','baixinservice.views.ad_Details'),

    # Examples:
    # url(r'^$', 'baixinservice.views.home', name='home'),
    # url(r'^baixinservice/', include('baixinservice.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:

    url(r'^admin/', include(admin.site.urls)),

    url(r'^$','appviews.information.getInformationByCategoryId', name = 'main'),
    
    url(r'^information/category/(\d{1,9})/$', 'appviews.information.getInformationByCategoryId', name = u'根据资讯类型获取对应的资讯列表'),
    url(r'^information/category/(\d{1,9})/(\d{0,9})$', 'appviews.information.getCategoryInfoByIndex', name = u'*返回json 获取指定资讯类型的起始index到结束index的数据'),
    url(r'^information/detail/(\d{1,9})/$', 'appviews.information.getInformationDetail', name = u'*返回json 根据资讯id获取对应的资讯json信息'),

    url(r'^store/$','appviews.store.getDataListByPage', name = u'门店首页'),
    url(r'^store/addDataByJson/$','appviews.store.addDataByJson', name = u'*post 门店数据接入接口'),
    url(r'^store/detail/(.*)/$','appviews.store.dataDetail', name = u'门店详情')

)
